package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Permission;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.Collection;
import java.util.List;

public interface IPermissionService {
    int saveOrUpdate(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    PageResult query(QueryObject qo);

    /**
     * 加载权限
     */
    void reload();

    /**
     * 根据id查询权限信息
     * @param id
     * @return
     */
    List<Permission> selectByRoleId(Long id);

    /**
     * 根据员工ID查询所有的权限
     * @param employeeId
     * @return
     */
    List<String> selectByEmployeeId(Long employeeId);
}
